import request from "@/utils/request";

// 查询类型列表
export function getProductTypeList(query) {
  return request({
    url: "/app/userProductType/getType",
    method: "get",
    params: query,
  });
}
// 删除类型列表
export function delProductTypeList(projectIds) {
  return request({
    url: "/app/userProductType/" + projectIds,
    method: "delete",
  });
}

// 查询类型详细
export function getProductTypeListItem(projectId) {
  return request({
    url: "/app/userProductType/" + projectId,
    method: "get",
  });
}

// 新增类型
export function addProductTypeListItem(data) {
  return request({
    url: "/app/userProductType/add",
    method: "post",
    data: data,
  });
}

// 修改
export function updateProductTypeListItem(data) {
  return request({
    url: "/app/userProductType/update",
    method: "put",
    data: data,
  });
}
